<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>vue-入门实例</title>
</head>
<body>
<div id="app">
    <div id="box1">

    </div>
    <div id="box2">
        {{message}}
    </div>


    <table class="table">
        <tr v-for="emp in employees" class="item">
            <td>{{emp.name}}</td>
            <td>{{emp.age}}</td>
        </tr>
    </table>
</div>
</body>
<script src="../../lib/jquery.js"></script>
<script src="../../lib/vue.js"></script>
<script>
/*
 *  vue 可以脱离dom驱动
* */
    new Vue({
        el: '#app',
        data:{
            message:'hello world',
            employees:[
                {
                    id: 1,
                    name: 'L',
                    age: 133
                }, {
                    id: 2,
                    name: 'M',
                    age: 33
                }
            ]
        }
    })




</script>
</html>